package ovm.gui.buttons.table.users;

import ovm.gui.buttons.table.AbstractTableButton;
import ovm.gui.views.administration.users.ChangeUserView;

import static ovm.application.MainApplication.*;

public class ChangeUserButton extends AbstractTableButton {
    
    private String login;
    
    public ChangeUserButton(String caption, String login) {
        super(caption);
        this.login = login;
    }
    
    @Override
    public void buttonClick(ClickEvent event) {
        navigator.setMainView(new ChangeUserView(login));
    }
}
